import request from "@/utils/request";

export function salesman_index(params) {
  return request({
    url: "/salesman/index",
    method: "get",
    params
  });
}

export function salesman_add(data) {
  return request({
    url: "/salesman/add",
    method: "post",
    data: data
  });
}

export function salesman_edit(data) {
  return request({
    url: "/salesman/edit",
    method: "post",
    data: data
  });
}

export function salesman_delete(data) {
  return request({
    url: "/salesman/delete",
    method: "post",
    data: data
  });
}

export function salesman_changeStatus(data) {
  return request({
    url: "/salesman/changeStatus",
    method: "post",
    data: data
  });
}
